﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Input;

namespace Beat_em_Up.Scenes
{
    public class Game_Over
    {
        Texture2D background;
        
        public Game_Over(ContentManager Content)
        {
            background = Content.Load<Texture2D>("background");
        }

        public void Update(GameTime gameTime)
        {
            KeyboardState keyboard = Keyboard.GetState();

            if (keyboard.IsKeyDown(Keys.Enter) || keyboard.IsKeyDown(Keys.Escape) || keyboard.IsKeyDown(Keys.Space))
            {
                Manager.actual_Scene = Manager.Screens.INTRO;
            }
        }

        public void Draw(GameTime gameTime, SpriteBatch spriteBatch)
        {
            spriteBatch.Draw(background, new Rectangle(0, 0, background.Width, background.Height), Color.White);
        }
    }
}
